package com.student.foodAfter.utils;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private String msg;//返回
    private boolean status;
    private Object data;

    public static Result success(String message){
        return new Result(message,true,null);
    }
    public static Result success(String message, Object data){
        return new Result(message,true,data);
    }
    public static Result fail(String message){
        return new Result(message,false,null);
    }
    public static Result fail(String message,Object data){
        return new Result(message,false,data);
    }

}

